from datetime import datetime
import numpy as np
import pandas as pd
date_index = pd.to_datetime(['2025-04-23','2023-01-23','2022-03-12'])
date_ser = pd.Series(['11','22','33'],index=date_index)
print(date_ser)
date_list = datetime(2025,2,11),datetime(2023,5,12),datetime(2023,5,12)
date_demo = [[11,22,33],[22,44,22],[22,33,55]]
date_list1=pd.DataFrame(date_demo,index=date_list)
print(date_list1)
date_list2 =['2025/11/23','2023/12/23','2029/12/23','2028/12/23','2026/12/23','2021/12/23']
date_index1=pd.to_datetime(date_list2)
date_ser1 = pd.Series(np.arange(6),index=date_index1)
print(date_ser1)
print(date_ser1['2029'])